package com.xspace.android.imcommon.interfaces;

import android.os.Parcel;
import android.os.Parcelable;

import com.xspace.android.imcommon.entity.DBSMSBean;

import java.util.ArrayList;

public class SmsListAidl implements Parcelable {
	public ArrayList<DBSMSBean> respList;

	public SmsListAidl(ArrayList<DBSMSBean> respList) {
		super();
		this.respList = respList;

	}

	public SmsListAidl(Parcel in) {
		readFromParcel(in);

	}

	protected void readFromParcel(Parcel in) {
		respList = (ArrayList<DBSMSBean>) in.readSerializable();
	}

	@Override
	public void writeToParcel(Parcel parcel, int flags) {
		parcel.writeSerializable(respList);
	}

	@Override
	public int describeContents() {
		return 0;
	}

	public static final Creator<SmsListAidl> CREATOR = new Creator<SmsListAidl>() {
		public SmsListAidl createFromParcel(Parcel in) {
			return new SmsListAidl(in);
		}

		public SmsListAidl[] newArray(int size) {
			return new SmsListAidl[size];
		}
	};
}
